]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panelMenu: Attempt to navigate menus only if we can't navigate inside the menu
authorTanner Doshier <doshitan@gmail.com>
Sat, 4 May 2013 01:33:05 +0000 (20:33 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 4 May 2013 03:20:02 +0000 (23:20 -0400)
This enables key navigation in the calendar.

https://bugzilla.gnome.org/show_bug.cgi?id=667434

js/ui/panelMenu.js

index aa935e9c49fff83f3ebbe70dff3a19b4d72867fe..b73152eb014b0c0c13e27c01198d287fa987f193 100644 (file)
@@ -184,6 +184,9 @@ const Button = new Lang.Class({
     },
 
     _onMenuKeyPress: function(actor, event) {
+        if (global.focus_manager.navigate_from_event(event))
+            return true;
+
         let symbol = event.get_key_symbol();
         if (symbol == Clutter.KEY_Left || symbol == Clutter.KEY_Right) {
             let group = global.focus_manager.get_group(this.actor);